Fix and tighten an assertion
authorFederico Mena Quintero <federico@novell.com>
Thu, 27 Aug 2009 00:10:51 +0000 (19:10 -0500)
committerBenjamin Otte <otte@gnome.org>
Thu, 15 Oct 2009 20:06:14 +0000 (22:06 +0200)
Signed-off-by: Federico Mena Quintero <federico@novell.com>
gtk/gtkfilesystemmodel.c

index a8755f67933454ae776f75aeca4f6e095383cdba..ca967f9c7cfcba3095113cb216d0e4199bbe0f17 100644 (file)
@@ -1122,8 +1122,7 @@ gtk_file_system_model_set_directory (GtkFileSystemModel *model,
                                      GFile *             dir,
                                     const gchar *       attributes)
 {
-  g_return_if_fail (GTK_IS_FILE_SYSTEM_MODEL (model));
-  g_return_if_fail (dir == NULL || G_IS_FILE (dir));
+  g_assert (G_IS_FILE (dir));
 
   model->dir = g_object_ref (dir);
   model->attributes = g_strdup (attributes);